package com.tul.exercise.base.innerclass.chapter10_6;


import com.tul.exercise.base.innerclass.chapter10_4.Contents;

/**
 * @Description 《java编程思想》10.5
 *  匿名类字段的初始化
 **/
public class Pacel9 {
    public Destination destination(String des) {
        return new Destination() {
            private String label = des;

            public String readLable() {
                return label;
            }


        };
    }

    public static void main(String[] args) {
        Pacel9 p = new Pacel9();
        p.destination("String");
    }
}
